import request from '@/utils/request.js'

// 分页查询
export const commentListService = (params) => {
    return request.get('/comment/selectPage',{params})
}

// 删除评论
export const deleteCommentService = (id) => {
    return request.delete('/comment/delete?id='+id)
}

//批量删除
export const batchDeleteCommentService = (ids)=>{
    return request.delete('/comment/delete/batch',{data:ids})
}

//查找
export const findCommentService = (username)=>{
    return request.get('/comment/findByUserName?username='+username)
}
